//
//  MYNewsDetailsScenicspotVC.m
//  MuYing
//
//  Created by tbb on 2019/8/6.
//  Copyright © 2019 TBB. All rights reserved.
//

#import "MYNewsDetailsScenicspotVC.h"
#import "MYNewsDetailsModel.h"
#import "MYNewsShopDetailsScenicspotVC.h"
@interface MYNewsDetailsScenicspotVC ()

@end

@implementation MYNewsDetailsScenicspotVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

-(void)goToBuyVC:(UIButton *)sender {
    MYNewsShopDetailsScenicspotVC *reserveHotelVC = [MYNewsShopDetailsScenicspotVC new];
    reserveHotelVC.informationId = self.informationId;
    kYQPUSH(reserveHotelVC);
}

-(void)setupView {
    [super setupView];
    kYQREGISTERTABLEVIEWNIBCELL(@"MYNewsDetailsScenicspotPriceCell")
}

#pragma mark - UITableViewDelegate, UITableViewDataSource

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    if (section == 2) {
        MYShopDetailsTitleHeaderView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"MYShopDetailsTitleHeaderView"];
        headerView.titleLb.text = kYQLS(@"更多景点");
        return headerView;
    }
    return [super tableView:tableView viewForHeaderInSection:section];

}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    if (section == 2) {
        return 52;
    }
    return [super tableView:tableView heightForHeaderInSection:section];
}
#pragma mark - UITableViewDelegate, UITableViewDataSource end

@end
